package kdweibo4j;

import java.util.ArrayList;
import java.util.List;

import kdweibo4j.MsgExtra.Properties;
import kdweibo4j.org.json.JSONException;
import kdweibo4j.org.json.JSONObject;


public class Thread extends WeiboResponse implements java.io.Serializable {

	public int total;
	public List<User> userList; 
	public String id;
	/**
	 * 
	 */
	private static final long serialVersionUID = -7634835258537489215L;
	public Thread(JSONObject json) throws WeiboException{
		constructJson(json);
	}

	private void constructJson(JSONObject json) throws WeiboException {
		try {
			total = json.getInt("total");
			id = json.getString("id");
			if(!json.isNull("participants")){
			//	userList=User.constructUser();
				
				
			}
		} catch (JSONException e) {
			throw new WeiboException(e.getMessage() + ":" + json.toString(),e);
		}
	}

}
